package com.woniuxy.third.service.impl;

import com.woniuxy.third.entity.Order;
import com.woniuxy.third.entity.Sale;
import com.woniuxy.third.mapper.SaleMapper;
import com.woniuxy.third.service.SaleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: yangtao
 * @date 2021/7/22 16:14
 * @Version 1.0
 */
@Service
public class SaleServiceImpl implements SaleService {
    @Resource
    private SaleMapper saleMapper;

    @Override
    public void addSale(Order order) {
        saleMapper.addSale(order);
    }

    @Override
    public List<Sale> findByUid(int uid) {
        return saleMapper.findByUid(uid);
    }
}
